home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / gprof / gpfsrc09.zoo / test2.tcov < prev   
Text File  |  1991-07-15  |  1KB  |  51 lines

  1.            void call_bar_function_recr(p)
  2.            int *p;
  3.    1000 -> {}
  4.            
  5.            void foo(p)
  6.            int *p;
  7.    1000 -> {
  8.              call_bar_function_recr(p);
  9.            }
  10.            
  11.            int factorial_function(n)
  12.            int n;
  13.    5000 -> {
  14.                if(n <= 1)
  15.     500 ->     return 1;
  16.                else
  17.    4500 ->     return n * factorial_function(n - 1);
  18.            }
  19.            
  20.            int main()
  21.       1 -> {
  22.                int i;
  23.            
  24.                for(i = 0; i < 500; i++) factorial_function(10);
  25.       1 ->     for(i = 0; i < 1000; i++) foo(&i);
  26.            
  27.       1 ->     return 0;
  28.            }
  29.  
  30.  
  31.          Top 10 Blocks
  32.  
  33.          Line       Count
  34.  
  35.            13        5000
  36.            17        4500
  37.             3        1000
  38.             7        1000
  39.            15         500
  40.            21           1
  41.            25           1
  42.            27           1
  43.  
  44.  
  45.         8    Basic blocks in this file
  46.         8    Basic blocks executed
  47.     100.00    Percent of the file executed
  48.  
  49.         12003    Total basic block executions
  50.       1500.38    Average executions per basic block
  51.